<?php
class Headhunt_model extends MY_Model {
	public function __construct() {
		parent::__construct();
	}

	public function getHeadhuntList($limit = 0){
		$query = $this->db->get("ym_headhunt");
		$this->db->limit($limit, 3);
		$this->db->order_by("sort_order","desc");
		return $query->result_array();
	}

	public function getHeadhuntDetail($id){
		$this->db->where("id",$id);
		$query = $this->db->get("ym_headhunt");
		return $query->row_array();
	}


}



